package com.alibaba.cloud.application.handler;

import com.alibaba.cloud.application.handler.message.MessageHandler;
import com.alibaba.cloud.domain.BaseMessage;

/**
 * @author cruise
 */
public abstract class BaseMessageHandler implements MessageHandler {
    @Override
    public void execute(BaseMessage message) {
        this.send(message);
    }

    public abstract void send(BaseMessage message);

    public abstract void record(BaseMessage message);

    public abstract boolean interestedMessage(BaseMessage message);
}
